package io.renren.modules.substation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.substation.entity.TInfoRoleAreaEntity;
import io.renren.modules.substation.entity.TInfoUserAreaEntity;

import java.util.List;
import java.util.Map;

/**
 * 角色区域权限表
 *
 * @author yzx
 * @email sunlightcs@gmail.com
 * @date 2020-07-13 10:37:26
 */
public interface TInfoRoleAreaService extends IService<TInfoRoleAreaEntity> {

    PageUtils queryPage(Map<String, Object> params);

    public void saveRoleArea(Long roleId, List<Long> roleAreaList, Long createId);

    public int deleteBatch(Long[] roleIds);

    List<TInfoRoleAreaEntity> listByRoleId(Long id);

    List<TInfoRoleAreaEntity> getAreaPermsByUser(Long userId);

    List<Long> getAreaListByUser(Long userId);
}

